<template>
  <div>
      	<el-dialog
			:title="title"
			:visible.sync="dialogVisible"
			width="30%"
           @close="dialogClose"
           @open="dialogOpen"
           :show-close='false'
           
			
		>
			<v-Form :formData="formatData" :isopen='title'></v-Form>
			<span slot="footer" class="dialog-footer">
				<el-button @click="dialogClose">取 消</el-button>
				<el-button type="primary" @click="submit"
					>确 定</el-button
				>
			</span>
		</el-dialog>
  </div>
</template>

<script>
import vForm from './form.vue'

export default {
     props:[
         'title',
        'dialogVisible',
        'formatData'

    ],
    components:{
        vForm
    },
     mounted(){
    },
    data(){
        return {
           
           
            
        }
    },
   
    methods:{
        dialogClose(){
           
            this.$emit('dialogClose')
        },
        dialogOpen(){
            this.$emit('dialogOpen')
        },
        submit(){
            console.log('submit')
        }
        
    }
       
    

}
</script>

<style>

</style>